<template>
	<view>
		<u-navbar :title="isUserData?'用户协议':'隐私协议'" placeholder bgColor="transparent" :autoBack="true">
		</u-navbar>
		<view class="u-content">
			<u-parse :content="content"></u-parse>
		</view>
		<u-gap height="30rpx"></u-gap>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: "",
				content: `
					<p>露从今夜白，月是故乡明</p>
					<img src="https://cdn.uviewui.com/uview/swiper/2.jpg" />
				`
			}
		},
		onLoad(option) {
			this.type = option.type
		},
		computed: {
			isUserData() {
				return this.type === '1'
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.u-content {
		padding: 30rpx;
	}
</style>